import java.io.*;

public class Main {
    public static void main(String[] args) {
        File filename=new File("C:\\Users\\kkkqkx\\Desktop\\作业\\java\\作业\\文件\\text.txt");//改成你自己的路径
        try {
            BufferedReader bufReader=new BufferedReader(new FileReader(filename));
            String line;
            String str;
            int sum=0;
            String[] strArr;
            while((line= bufReader.readLine())!=null){
                if(line.startsWith("Score:")){
                    str=line.substring(6);
                    strArr=str.split(",");
                    for(String temp:strArr){
                        sum+=Integer.parseInt(temp);
                    }
                }
            }
            System.out.println(sum);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}